// Game

Assault.Game = {}

// Print

function Assault.Game.Print(Text)
	print("[Assault] "..Text)
end

// Sound

function Assault.Game.CreateWorldSound(Vector, Sound, Entity)
	local Position = Entity:EntityGetPosition():Vector3D()
	
	// Len
	
	local Len = Vector:Vector3D():Distance(Position)
	
	// Volume
	
	local Volume = math.Clamp(100 - ((100 / (ScrW() / 2)) * Len), 0, 100)
	
	// Emit sound
	
	Assault.Client:EmitSound(Sound, Volume)
end